//
// Created by cychen on 2023/3/10.
//

#ifndef LIST_CONTROLLER_H
#define LIST_CONTROLLER_H

#include <vector>
#include <string>
#include "Input.h"
#include "Config.h"

using namespace std;

// 伪main函数，只供命令行程序使用
int execCalculation(vector<string> wordList);

int setInConfig(int _state, int _head, int _tail, int _reject, bool _ring, string &_filePath);

char int2char(int n);

int vectorToCharArray_(vector<string> &strings, char *result[]);

int printChains(char *chain[], int len);

int printChain(char *chain[], int len);

int checkRingError(int ret, char *result[]);

#endif //LIST_CONTROLLER_H
